package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:26 Warning ! This file will be overwrite when
 * regenerate !
 */
public class ProjectWorkspaceRelate implements java.io.Serializable {

  public ProjectWorkspaceRelate() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long projectId;

  /** Attribute projectId Be Seted Falg */
  private boolean projectIdSetted = false;

  /** Attribute projectId is Null Falg */
  private boolean projectIdNull = false;

  /**
   * Get projectId
   *
   * @return long
   */
  public final long getProjectId() {

    return projectId;
  }

  /**
   * Set projectId
   *
   * @param long
   */
  public final void setProjectId(long projectId) {

    this.projectId = projectId;

    this.projectIdSetted = true;

    this.setProjectIdNull(false);
  }

  /**
   * Get projectId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isProjectIdSetted() {
    return this.projectIdSetted;
  }

  /** Set projectId Null */
  public final void setProjectIdNull() {

    this.projectIdNull = true;
  }

  public final void setProjectIdNull(boolean aNullFlag) {

    this.projectIdNull = aNullFlag;
  }

  public final boolean isProjectIdNull() {

    return this.projectIdNull;
  }

  private long workspaceId;

  /** Attribute workspaceId Be Seted Falg */
  private boolean workspaceIdSetted = false;

  /** Attribute workspaceId is Null Falg */
  private boolean workspaceIdNull = false;

  /**
   * Get workspaceId
   *
   * @return long
   */
  public final long getWorkspaceId() {

    return workspaceId;
  }

  /**
   * Set workspaceId
   *
   * @param long
   */
  public final void setWorkspaceId(long workspaceId) {

    this.workspaceId = workspaceId;

    this.workspaceIdSetted = true;

    this.setWorkspaceIdNull(false);
  }

  /**
   * Get workspaceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceIdSetted() {
    return this.workspaceIdSetted;
  }

  /** Set workspaceId Null */
  public final void setWorkspaceIdNull() {

    this.workspaceIdNull = true;
  }

  public final void setWorkspaceIdNull(boolean aNullFlag) {

    this.workspaceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceIdNull() {

    return this.workspaceIdNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof ProjectWorkspaceRelate) == false) {
      return false;
    }
    ProjectWorkspaceRelate other = (ProjectWorkspaceRelate) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("projectId=");
    buffer.append(this.projectId);

    buffer.append("workspaceId=");
    buffer.append(this.workspaceId);

    buffer.append("]");

    return buffer.toString();
  }
}
